home *** CD-ROM | disk | FTP | other *** search
/ Best of Shareware / Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso / mac / DOS / UTILITY / EZIP11E / EZSET.BAT < prev    next >
DOS Batch File  |  1992-08-21  |  2KB  |  45 lines

  1. @echo off
  2. cls
  3. if "%1"=="" goto NOINPUT
  4. echo        Verify that "%1" is the correct path to the EZIP subdirectory.
  5. echo.  
  6. echo   Format must be as follows:   "EZSET c:\ezip".  
  7. echo      (Substitute your EZIP path for  'c:\ezip' in the example.)
  8. echo                 NOTE:  No ending backslash or semicolon
  9. echo.
  10. echo        (if your EZIP path is INCORRECT, USE  ^C  to ABORT...)
  11. echo.
  12. pause 
  13. echo.
  14. echo    Setting new PATH:
  15. set path=%1;%path%
  16. if errorlevel 1 goto ERRHAN
  17. echo   The new PATH = %path%
  18. echo.
  19. echo   Setting the "EZIPDIR" environment variable to:  "%1".
  20. set ezipdir=%1
  21. if errorlevel 1 goto ERRHAN
  22. echo.
  23. echo   EZIPDIR is now set to:  "%ezipdir%"
  24. goto FINISH
  25. :NOINPUT
  26. cls
  27. echo  You MUST specify the subdirectory where you have installed EZIP as part
  28. echo of the command line for EZSET.bat.  Example:  If your EZIP files were
  29. echo located in  C:\EZIP  subdirectory, you would type:  
  30. echo                                EZSET C:\EZIP
  31. echo.
  32. echo  Please re-run EZSET with the correct path to your EZIP files.
  33. pause 
  34. goto FINISH
  35. :ERRHAN
  36. cls
  37. echo  ###########  Problem setting new path or EZIPDIR variable. ########
  38. echo
  39. echo  Check your AUTOEXEC.BAT file for the correct information and format.
  40. echo  If it looks OK, you can re-boot to update the PATH or try running this
  41. echo  batch file again.  Remember, you MUST be at the DOS prompt for this 
  42. echo  batch file to work properly.  If you are inside Norton Commander or PC
  43. echo  TOOLS Shell, this file will not properly alter the environment as desired.
  44. :FINISH
  45.